<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page import="dataType.AgencyData" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Iterator" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<h1 align="center">SISTEMA DE VENTA TICKETS DE LA IMM</h1>
	<h2 align="center">Seleccione una agencia para modificar.</h2>
	<table>
	<%Collection colAgency = (Collection) request.getAttribute("colAgency"); 
		Iterator it = colAgency.iterator();
		AgencyData aux = null;
		while (it.hasNext()){
			aux = (AgencyData)it.next();	
			%><tr>
			<td><%= aux.getName()%> </td> 
			<td><a href = "http://localhost:8080/IMM/modifAgencia2.do?id=<%=aux.getIdAgency()%>&user=<%=aux.getUser()%>&name=<%=aux.getName()%>&pass=<%=aux.getPassword()%>">Modificar</a></td>
			</tr>
		<%}%>		
	</table>
</body>
</html>